<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<style>
.ui-picklist .ui-picklist-list {
	width: 450px;
}
</style>
</h:head>
<h:body>
	<div id="contenido">
		<h1>Login</h1>


		<p:spacer height="10" />

		<p:separator />

		<h:form id="formLogin">
			<p:growl id="msgs" showDetail="true"/>
		
			<h:panelGrid columns="2" cellpadding="5">
				<h:outputLabel for="usu" value="Usuario:" style="font-weight:bold" />
				<p:inputText id="usu" value="#{loginView.usuario}"/>
				
				<h:outputLabel for="pass" value="Contraseña:" style="font-weight:bold" />
				<p:password id="pass" value="#{loginView.pass}" feedback="true" />
				
				<p:commandButton  value="Enviar"
							actionListener="#{loginView.validarUsuario}" update=":formLogin"
							style=" background:none;  "
							icon="ui-icon-check" />
			</h:panelGrid>
		</h:form>
	</div>
</h:body>
</html>